package com.youlai.boot.system.model;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Objects;
import java.util.Random;
import java.util.UUID;


@Getter
@Setter
@ToString
public class Goods implements Serializable {
    private Long id;
    private String name;
    private String code;
    private String picture;
    private Integer pageNum;
    private Integer pageSize;
    private Integer goodsTypeId;

    public Goods(String code) {
        this.code = code;
    }

    public Goods() {
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Goods goods = (Goods) o;
        return Objects.equals(id, goods.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
